home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / ecc-121.lha / ecc-1.2.1 / Makefile.in < prev    next >
Makefile  |  1993-01-19  |  3KB  |  120 lines

  1. # Makefile for ECC.    -*- Indented-Text -*-
  2. # Copyright (C) 1992 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #### Start of system configuration section. ####
  19.  
  20. srcdir = @srcdir@
  21. VPATH = @srcdir@
  22.  
  23. CC = @CC@
  24.  
  25. INSTALL = @INSTALL@
  26. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  27. INSTALL_DATA = @INSTALL_DATA@
  28.  
  29. DEFS = @DEFS@
  30. LIBS = @LIBS@
  31.  
  32. CFLAGS = -O
  33. LDFLAGS = -O
  34.  
  35. CHARSET = @CHARSET@
  36.  
  37. prefix = /usr/local
  38. exec_prefix = $(prefix)
  39.  
  40. bindir = $(exec_prefix)/bin
  41. datadir = $(prefix)/lib
  42. libdir = $(prefix)/lib
  43. infodir = $(prefix)/info
  44.  
  45. # Where to install the manual pages.
  46. mandir = $(prefix)/man/man1
  47. # Extension (not including `.') for the installed manual page filenames.
  48. manext = 1
  49.  
  50. #### End of system configuration section. ####
  51.  
  52. SHELL = /bin/sh
  53.  
  54. LOADLIBES = $(LIBS)
  55.  
  56. DISTFILES = COPYING Makefile.in configure configure.in ecc.1 ecc.c ecc.h \
  57.             gf.h gflib.c rslib.c version.c
  58.  
  59. .c.o:
  60.     $(CC) -c -I. -I$(srcdir) $(DEFS) $(CPPFLAGS) $(CFLAGS) $<
  61.  
  62. all: ecc
  63.  
  64. ### targets required by GNU Coding standards ###
  65.  
  66. Makefile: Makefile.in config.status
  67.     ./config.status
  68.  
  69. config.status: configure
  70.     $(srcdir)/configure --srcdir=$(srcdir) --no-create
  71.  
  72. configure: configure.in
  73.     cd $(srcdir); autoconf
  74.  
  75. TAGS:
  76.     cd $(srcdir); etags
  77.  
  78. clean:
  79.     rm -f *.o core a.out ecc
  80.  
  81. mostlyclean: clean
  82.  
  83. distclean: clean
  84.     rm -f Makefile config.status
  85.  
  86. realclean: distclean
  87.     rm -f TAGS
  88.  
  89. dist: $(DISTFILES)
  90.     echo ecc-`sed -e '/version/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q version.c` > .fname
  91.     rm -rf `cat .fname`
  92.     mkdir `cat .fname`
  93.     ln $(DISTFILES) `cat .fname`
  94.     tar chZf `cat .fname`.tar.Z `cat .fname`
  95.     rm -rf `cat .fname` .fname
  96.  
  97. install: all
  98.     -umask 002; mkdir $(bindir) $(mandir)
  99.     $(INSTALL_PROGRAM) ecc $(bindir)/ecc
  100.     -$(INSTALL_DATA) $(srcdir)/ecc.1 $(mandir)/ecc.$(manext)
  101.  
  102. uninstall: force
  103.     -cd $(bindir); rm -f ecc
  104.     -cd $(mandir); rm -f ecc.$(manext)
  105.  
  106. ### ecc-specific building targets ###
  107.  
  108. ecc.info: ecc.texi
  109.     cd $(srcdir); makeinfo ecc.texi
  110.  
  111. ecc.dvi: ecc.texi
  112.     cd $(srcdir); texi2dvi ecc.texi
  113.  
  114. ecc: ecc.o version.o rslib.o gflib.o
  115.  
  116. force:
  117.  
  118. # Prevent GNU make v3 from overflowing arg limit on SysV.
  119. .NOEXPORT:
  120.